package com.maxverse.boot.web2image.storage.repository;

import com.maxverse.boot.web2image.storage.entity.Task;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface TaskRepository extends JpaRepository<Task, Long> {
    Optional<Task> findByTaskId(String taskId);
    
    Page<Task> findByTaskIdContaining(String taskId, Pageable pageable);
} 